
package com.base.common.model.request;


import com.base.common.constants.HeaderConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 请求头信息
 *
 * @author admin
 * @date 2020/5/12 PM2:11
 **/
@ApiModel(value = "CommonRequestHeader", description = "请求对象信息")
public abstract class CommonRequest extends HeaderConstants implements java.io.Serializable {
    /**
     * @Fields serialVersionUID : 序列化标识
     */
    private static final long serialVersionUID = -8611699353022984265L;

    /**
     * 请求发起时间，格式：yyyyMMddHHmmssSSS
     * 字段取发送请求是操作系统当前时间
     */
    @ApiModelProperty(notes = "请求发起时间")
    private String reqTime;

    /**
     * <p>请求方流水</p>
     * <p>需要明确流水规则：</p>
     */
    @ApiModelProperty(notes = "请求方流水")
    private String reqTransID;

    /**
     * <p>动作标识</p>
     * 取值描述：
     * 0 - 请求；
     * 1 - 应答
     */
    @ApiModelProperty(notes = "动作标识")
    private String actionCode = "0";

    /**
     * <p>Title: 构造函数</p>
     * <p>Description: 同时对actionCode和reqSignFlag进行初始化</p>
     */
    public CommonRequest() {
        this.setActionCode(ACTION_REQUEST);
    }

    public String getReqTime() {
        return reqTime;
    }

    public CommonRequest setReqTime(String reqTime) {
        this.reqTime = reqTime;
        return this;
    }

    public String getReqTransID() {
        return reqTransID;
    }

    public CommonRequest setReqTransID(String reqTransID) {
        this.reqTransID = reqTransID;
        return this;
    }

    public String getActionCode() {
        return actionCode;
    }

    public CommonRequest setActionCode(String actionCode) {
        this.actionCode = actionCode;
        return this;
    }
}